package com.hotel.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hotel.dao.mapper.RoleMapper;
import com.hotel.entity.Role;


@Service
public class RoleService {

	@Autowired
	private RoleMapper roleMapper;
	
	
	public Role getRoleById(int userId) {
		return this.roleMapper.selectByPrimaryKey(userId);  
	} 
	
}
